import settings
from django.conf.urls.defaults import *

urlpatterns = patterns('',
                       (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.SITE_MEDIA + '/templates/media'}),
                       (r'^checkin/', 'arconn.card.views.checkin'),
                       (r'^logout/', 'arconn.card.views.logout'),
                       (r'^admin/', include('django.contrib.admin.urls')),
                       (r'^userlist/xml/$', 'arconn.card.views.userlist_xml'),
                       (r'^userlist/$', 'arconn.card.views.userlist'),
                       (r'^story/(?P<relation>[^/]+)/save/$', 'arconn.card.views.save_story'),
                       (r'^story/(?P<relation>[^/]+)/xml/$', 'arconn.card.views.story_xml'),
                       (r'^story/(?P<relation>[^/]+)/$', 'arconn.card.views.story'),
                       (r'^user/(?P<card_name>[^/]+)/create/$', 'arconn.card.views.create_card'),
                       (r'^user/(?P<card_name>[^/]+)/connect/$', 'arconn.card.views.connect'),                   
                       (r'^user/(?P<card_name>[^/]+)/partial_save/$', 'arconn.card.views.partial_save_card'),
                       (r'^user/(?P<card_name>[^/]+)/edit/$', 'arconn.card.views.edit_card'),
                       (r'^user/(?P<card_name>[^/]+)/save/$', 'arconn.card.views.save_card'),
                       (r'^user/(?P<card_name>[^/]+)/xml/$', 'arconn.card.views.user_xml'),
                       (r'^user/(?P<card_name>[^/]+)/$', 'arconn.card.views.view_card'),
                       (r'^', 'arconn.card.views.index'),
                       )
